# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-seaborn
_pkgorig=seaborn
pkgver=0.13.1
pkgrel=0
pkgdesc="Statistical data visualization in Python"
url="https://github.com/mwaskom/seaborn"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-numpy py3-pandas py3-matplotlib py3-scipy py3-statsmodels"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="py3-pytest-xdist"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mwaskom/seaborn/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest -n $JOBS \
		-k 'not test_categorical and not test_distributions and not test_axisgrid' # a minor portion of tests is failing (e.g. assertionErrors)
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/seaborn-$pkgver-py3-none-any.whl
}

sha512sums="
d3351b884edc751a0cee0964370bc7cab55c55cd90431de8b99a8e97ed01eac925307703eca3a02e149195460dadbc814e3c0a7529a98023984f72079eaebefb  py3-seaborn-0.13.1.tar.gz
"
